package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ ChatGroupModel = (*customChatGroupModel)(nil)

type (
	// ChatGroupModel is an interface to be customized, add more methods here,
	// and implement the added methods in customChatGroupModel.
	ChatGroupModel interface {
		chatGroupModel
	}

	customChatGroupModel struct {
		*defaultChatGroupModel
	}
)

// NewChatGroupModel returns a model for the database table.
func NewChatGroupModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ChatGroupModel {
	return &customChatGroupModel{
		defaultChatGroupModel: newChatGroupModel(conn, c, opts...),
	}
}
